package com.loong.life.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "agent_product")
public class AgentProduct extends BaseEntity {
    /**
     * 代理商id
     */
    @Column(name = "agent_id")
    private Long agentId;

    /**
     * 产品类型(0话费,1流量,2短信)
     */
    @Column(name = "product_type")
    private Integer productType;

    /**
     * 产品名称
     */
    @Column(name = "product_code")
    private String productCode;

    /**
     * 原价
     */
    @Column(name = "origin_price")
    private BigDecimal originPrice;

    /**
     * 优惠价
     */
    @Column(name = "discount_price")
    private BigDecimal discountPrice;

    /**
     * 库存
     */
    private Integer inventory;

    /**
     * 状态(1销售中,2已售罄,3未开售,4下架,5商品属性已更改)
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;
}